package org.patto.main.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.patto.common.core.api.BaseResponse;
import org.patto.main.api.dto.req.UserResDTO;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author songchuanfu
 * @ClassName UserInfoService
 * @qq 18050164315
 * @addres 1802284273@qq.com
 * @微信: wx-suagcf
 */
@Api(tags = "用户基本信息接口")
public interface UserInfoService {
    /**
     * 根据token 获取用户的信息
     *
     * @return
     */
    @GetMapping("/getByTokenUserInfo")
    @ApiOperation(value = "查询用户信息", notes = "根据token查询用户信息")
    @ApiImplicitParam(paramType = "query", name = "token", value = "用户token", required = true)
    BaseResponse<UserResDTO> getByTokenUserInfo(String token);
}
